package com.ossjk.oa.system.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 职工-部门表
 * </p>
 *
 * @author chair
 * @since 2019-01-29
 */
@TableName("employee_post")
public class EmployeePost extends Model<EmployeePost> {

	private static final long serialVersionUID = 1L;

	@TableId("id")
	private String id;
	/**
	 * 员工id
	 */
	@TableField("eid")
	private String eid;
	/**
	 * 岗位id
	 */
	@TableField("pid")
	private String pid;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEid() {
		return eid;
	}

	public void setEid(String eid) {
		this.eid = eid;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "EmployeePost{" + ", id=" + id + ", eid=" + eid + ", pid=" + pid + "}";
	}
}
